package com.example.oop.demo01;

//引用传递：对象，本质还是值传递
public class Demo03 {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.name);

        Demo03.change(person);
        System.out.println(person.name);
    }
    public static void change(Person person){
        person.name="阿松大";
    }

}

class Person{
    String name;
}
